package com.yonyou.cyxdms.sysAuth.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.AppVersionPO;
import com.yonyou.cyxdms.sysAuth.service.vo.appversion.AppVersionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * app版本表 Mapper 接口
 * </p>
 *
 * @author quankk
 * @since 2019-03-05
 */
public interface AppVersionMapper extends SuperMapper<AppVersionPO> {

   void updateVersionStatus(@Param("appId") String appId,@Param("appType") String appType);

    IPage<AppVersionVO> queryAppVersion(@Param("page") Page page, @Param("appId") String appId);

    AppVersionVO queryAppVersionById(@Param("id") String id,@Param("appId") String appId);

    List<AppVersionVO> queryAppVersionByAppId(@Param("status") int status, @Param("appId") String appId,@Param("type") String type);

}
